package git.soulbgm.pojo;

/**
 * 带有单位的值
 *
 * @author 贺瑞杰
 * @date 2022/06/20
 */
public class ValueUnit {

    /**
     * 值
     */
    private double val;
    /**
     * 单位
     */
    private String unit;

    public ValueUnit() {
    }

    public ValueUnit(double val, String unit) {
        this.val = val;
        this.unit = unit;
    }

    public double getVal() {
        return val;
    }

    public void setVal(double val) {
        this.val = val;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    @Override
    public String toString() {
        return val + unit;
    }

}
